n,m=map(int,input().split())
mp=[]
for _ in range(n):
    mp.append(input())
